package com.qidian.tcba.dao;



import com.qidian.tcba.admin.model.dto.systemAdmin.ParkLotOrgManageListDTO;
import com.qidian.tcba.admin.model.entity.Orgnization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface OrgnizationMapper {
    int deleteByPrimaryKey(int id);

    int insert(Orgnization record);

    Orgnization selectByPrimaryKey(int id);

    List<Orgnization> selectAll();

    int updateByPrimaryKey(Orgnization record);

    Integer getOrgIdByName(String name);

    List<Orgnization> getParkLotOrgManageList(Integer districtId,String name,Integer status);

    /**
     * 更新单位状态
     * @param status
     * @param id
     * @return
     */
    int updateStatusById(int status,int id);

}